<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class YjUser extends Model
{
	
    protected $table = 'yj_users';

    protected  function  saveUserMessage($data){

        return self::insertGetId($data);
    }

    protected  function getAllPhone(){

        return self::where("status",1)->get();
    }

    protected   function  SaveNewConsultantMessage($data){

        return self::insertGetId($data);
    }

    protected  function  getMessageByOpenid($open_id){

        return self::where("open_id",$open_id)->first() ;
    }

}
